<?php
/*[1] => stdClass Object
(
    [tid] => 219
    [vid] => 4
    [name] => 城市建设
    [description] =>
    [weight] => 0
    [depth] => 1
    [parents] => Array([0] => 195)
)*/
?>


<div class="categories begin"><!-- categories begin -->
<?php foreach($industry as $key=>$category):?>
  <?php if($category->parents[0] == 0 ):?>
    </div>
    <div class="category_list">
      <h3><?php echo $category->name;?></h3>
  <?php else:?>
    <div class="term"><a href="<?php echo url("taxonomy/term/".$category->tid);?>"><?php echo $category->name;?></a></div>
  <?php endif;?>
<?php endforeach;?>
</div><!-- categories end -->